Launcher.m 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. function varargout = Launcher(varargin)
  2. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  3. % Serves as the "launch hub" for the MEGPLS pipeline. %
  4. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  5. % Copyright (C) 2013-2014, Michael J. Cheung
  6. %
  7. % This file is a part of the MEG & PLS Pipeline (MEGPLS). For more
  8. % details, see the documentation included with the software package.
  9. %
  10. % MEGPLS is free software: you can redistribute it and/or modify it under
  11. % the terms of the GNU General Public License version 2 as published by
  12. % the Free Software Foundation. This program is distributed in the hope
  13. % that it will be useful, but WITHOUT ANY WARRANTY; without even the
  14. % implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. % See the GNU General Public License for more details.
  16. %
  17. % You should have received a copy of the GNU General Public License along
  18. % with this program. If not, you can download the license here:
  19. % <http://www.gnu.org/licenses/old-licenses/gpl-2.0>.
  20. % Last Modified by GUIDE v2.5 17-Sep-2014 12:35:04
  21. % Begin initialization code - DO NOT EDIT
  22. gui_Singleton = 1;
  23. gui_State = struct('gui_Name', mfilename, ...
  24. 'gui_Singleton', gui_Singleton, ...
  25. 'gui_OpeningFcn', @Launcher_OpeningFcn, ...
  26. 'gui_OutputFcn', @Launcher_OutputFcn, ...
  27. 'gui_LayoutFcn', [] , ...
  28. 'gui_Callback', []);
  29. if nargin && ischar(varargin{1})
  30. gui_State.gui_Callback = str2func(varargin{1});
  31. end
  32. if nargout
  33. [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
  34. else
  35. gui_mainfcn(gui_State, varargin{:});
  36. end
  37. % End initialization code - DO NOT EDIT
  38. %--- Executes just before Launcher is made visible. ---%
  39. %------------------------------------------------------%
  40. function Launcher_OpeningFcn(hObject, eventdata, handles, varargin)
  41. % This function has no output args, see OutputFcn.
  42. % hObject handle to figure
  43. % eventdata reserved - to be defined in a future version of MATLAB
  44. % handles structure with handles and user data (see GUIDATA)
  45. % varargin command line arguments to Launcher (see VARARGIN)
  46. % Choose default command line output for Launcher
  47. handles.output = hObject;
  48. % Update handles structure
  49. guidata(hObject, handles);
  50. % UIWAIT makes Launcher wait for user response (see UIRESUME)
  51. % uiwait(handles.figure1);
  52. %--- Outputs from this function are returned to the command line. ---%
  53. %--------------------------------------------------------------------%
  54. function varargout = Launcher_OutputFcn(hObject, eventdata, handles)
  55. % varargout cell array for returning output args (see VARARGOUT);
  56. % hObject handle to figure
  57. % eventdata reserved - to be defined in a future version of MATLAB
  58. % handles structure with handles and user data (see GUIDATA)
  59. % Get default command line output from handles structure
  60. varargout{1} = handles.output;
  61. % --- Executes on button press in ButtonSetPathsGUI.
  62. function ButtonSetPathsGUI_Callback(hObject, eventdata, handles)
  63. InstallationGUI
  64. % --- Executes on button press in ButtonPreprocMEG.
  65. function ButtonPreprocMEG_Callback(hObject, eventdata, handles)
  66. PreprocMEG
  67. % --- Executes on button press in ButtonPreprocMRI.
  68. function ButtonPreprocMRI_Callback(hObject, eventdata, handles)
  69. PreprocMRI
  70. % --- Executes on button press in ButtonTrialCleaner.
  71. function ButtonTrialCleaner_Callback(hObject, eventdata, handles)
  72. TrialCleanerGUI
  73. % --- Executes on button press in ButtonICAcleaner.
  74. function ButtonICAcleaner_Callback(hObject, eventdata, handles)
  75. ICAcleanerGUI
  76. % --- Executes on button press in ButtonBuilderGUI.
  77. function ButtonBuilderGUI_Callback(hObject, eventdata, handles)
  78. BuilderGUI
  79. % --- Executes on button press in ButtonDriverGUI.
  80. function ButtonDriverGUI_Callback(hObject, eventdata, handles)
  81. DriverGUI
  82. % --- Executes on button press in ViewTimelockFreqData.
  83. function ViewTimelockFreqData_Callback(hObject, eventdata, handles)
  84. VisualizeTimeFreq([])
  85. % --- Executes on button press in ButtonViewSourceData.
  86. function ButtonViewSourceData_Callback(hObject, eventdata, handles)
  87. VisualizeSourceData([])
  88. % --- Executes on button press in ButtonViewPLSresults.
  89. function ButtonViewPLSresults_Callback(hObject, eventdata, handles)
  90. ViewPLSresults
  91. % --- Executes on button press in ButtonViewManualNiftiAfni.
  92. function ButtonViewManualNiftiAfni_Callback(hObject, eventdata, handles)
  93. ViewNiftiAfni